#!/bin/sh

# $Id: tests.sh 5 2008-05-27 10:41:12Z lafriks $

allerrs=0

for i in tests/*.sh; do
    /bin/sh ${i}
    err=$?
    if [ $err -ne 0 ]; then
        echo "${i}: $err test(s) failed"
        allerrs=$[ $allerrs + $err ]
    else
        echo "${i}: All test succefully passed"
    fi
done

exit $allerrs
